<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	<title>Vue插槽-插槽内容</title>
</head>
<body>
	<div id="app">
		<submit-button>
		<h1>Hello</h1>
		</submit-button>
	</div>
	
</body>
</html>
<script type="text/javascript">
	Vue.component('submit-button',{
		props: ['url'],
		template: 'Test <button type="submit"><slot>Save</slot></button>'

		// template: '<a v-bind:href="url" ></a>'
	});
	
	var app=new Vue({
		el:'#app'
	});
</script>